﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-12-17 16:03
    /// 描 述：会员模板实体类
    /// </summary>
    [Table("member_level")]
    public class MemberLevelEntity : BaseEntity
    {
        /// <summary>
        /// 会员名称
        /// </summary>
        /// <returns></returns>
        public string name { get; set; }
        /// <summary>
        /// 免运费标准
        /// </summary>
        /// <returns></returns>
        public decimal? free_freight_point { get; set; }
        /// <summary>
        /// 每次评价获取的成长值
        /// </summary>
        /// <returns></returns>
        public int? comment_growth_point { get; set; }
        /// <summary>
        /// 是否有免邮特权
        /// </summary>
        /// <returns></returns>
        public int? priviledge_free_freight { get; set; }
        /// <summary>
        /// 是否有签到特权
        /// </summary>
        /// <returns></returns>
        public int? priviledge_sign_in { get; set; }
        /// <summary>
        /// 是否有评论获奖励特权
        /// </summary>
        /// <returns></returns>
        public int? priviledge_comment { get; set; }
        /// <summary>
        /// 是否有专享活动特权
        /// </summary>
        /// <returns></returns>
        public int? priviledge_promotion { get; set; }
        /// <summary>
        /// 是否有会员价格特权
        /// </summary>
        /// <returns></returns>
        public int? priviledge_member_price { get; set; }
        /// <summary>
        /// 是否有生日特权
        /// </summary>
        /// <returns></returns>
        public int? priviledge_birthday { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// <returns></returns>
        public string note { get; set; }
        /// <summary>
        /// 会员卡价格
        /// </summary>
        /// <returns></returns>
        public float? card_price { get; set; }
        /// <summary>
        /// 默认图片封面
        /// </summary>
        /// <returns></returns>
        public string card_image { get; set; }
        /// <summary>
        /// 有效时长单位，1周，2月，3季，4年
        /// </summary>
        /// <returns></returns>
        public int? valid_time_unit { get; set; }
        /// <summary>
        /// 有效时长(周期)，表示几周，几个月
        /// </summary>
        /// <returns></returns>
        public int? valid_time { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? addtime { get; set; }
        /// <summary>
        /// 会员价格
        /// </summary>
        /// <returns></returns>
        public float? member_price { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        /// <returns></returns>
        public int? level { get; set; }
    }
}
